package com.zrx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrx.domain.entity.Role;

import java.util.List;


/**
 * 角色信息表(Role)表数据库访问层
 *
 * @author makejava
 * @since 2022-09-28 08:47:59
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 角色权限字符串
     * @param userId
     * @return
     */
    List<String> selectRoleKeyByUSerId(Long userId);

    /**
     * 根据id获取对应的角色
     * @param userId
     * @return
     */
    List<Long> selectRoleIdByUserId(Long userId);
}

